<?php 
  $id=$_GET[id];
  $_POST['ctime']=time();
  include_once('../../public/function.php');
  $config = include_once('../../public/config.php');
  $res= update($config,'gonggao',$_POST);

  
 if ($res){
     echo "<script>
     alert('修改成功');window.location.href='gonggao.php'</script>";
 }else{
 	echo "<script>
     alert('修改失败');window.location.href='gonggao.php'</script>";
 }
 ?>